package com.hzy.quetosys.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;

@Data
public class ProductType {
    private int id;
    @NotBlank(message = "产品类型名称不能为空")
    @Size(max=50,message = "产品类型名称不能超过50字")
    private String name;
    private List<Product> product=new ArrayList<>();
}
